package com.ruoyi.settled.service.impl;

import java.util.List;

import com.ruoyi.settled.domain.SalesOrders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.settled.mapper.BloggersOrderMapper;
import com.ruoyi.settled.service.IBloggersOrderService;

/**
 * 订单管理Service业务层处理
 *
 * @author lzp
 * @date 2025-03-13
 */
@Service
public class BloggersOrderServiceImpl implements IBloggersOrderService
{
    @Autowired
    private BloggersOrderMapper bloggersOrderMapper;

    /**
     * 查询订单管理
     *
     * @param orderId 订单管理主键
     * @return 订单管理
     */
    @Override
    public SalesOrders selectSalesOrderByOrderId(String orderId)
    {
        return bloggersOrderMapper.selectSalesOrderByOrderId(orderId);
    }

    /**
     * 查询订单管理列表
     *
     * @param salesOrder 订单管理
     * @return 订单管理
     */
    @Override
    public List<SalesOrders> selectSalesOrderList(SalesOrders salesOrder)
    {
        return bloggersOrderMapper.selectSalesOrderList(salesOrder);
    }



    /**
     * 修改订单管理
     *
     * @param salesOrder 订单管理
     * @return 结果
     */
    @Override
    public int updateSalesOrder(SalesOrders salesOrder)
    {
        return bloggersOrderMapper.updateSalesOrder(salesOrder);
    }

    @Override
    public List<SalesOrders> selectBloggerOrdersList(String businessType) {
        return bloggersOrderMapper.selectBloggerOrdersListByBusinessType(businessType);
    }


}